<?php

	include("dboper.php");
	$h_asisten = getAllAsisten();

	if(!@$_POST['akses'] == true) {
	   die('Akses langsung tidak diperbolehkan!');
	}

    $d_sistem = getConfig();
    $jenis = $d_sistem['jenisPolling']; 
        
        if( $jenis == "SINGLE" ){
          /*  echo '<form id="singleMethod" onSubmit="return false;" ><p>Silahkan pilih salah satu asisten praktikum favorit menurut anda.</p>';
            while ($d_asisten = mysql_fetch_array($h_asisten)) {
			echo '	<label class="options">
						<span class="optionsphoto"><img src="http://www.amikom.ac.id/public/fotomhs/20'.substr($d_asisten['nim_asisten'],0,2).'/'.$d_asisten['nim_asisten'].'.jpg" width="100" /></span>
						</br><div style="line-height: 20px;">'.$d_asisten['namaPanggilan'].'</br>'.$d_asisten['NIM'].'</div>
						<input required="" type="radio" name="grupAsisten" id="grupAsisten" value="'.$d_asisten['idAsisten'].'"      
                        alt="'.$d_asisten['namaPanggilan'].'" />
					</label>';
            }*/
             echo '<hr><div class="fb_footer"> <input type="submit" value="Selanjutnya" /></div></form>';
        } else {
            echo '<form id="doubleMethod" onSubmit="return false;" ><p>Berikut adalah nama Asisten Praktikum yang mengampu kelas amda.</p>';
            while ($d_asisten = mysql_fetch_array($h_asisten)) {
			echo '	<label class="options">
						<span class="optionsphoto"><img src="http://www.amikom.ac.id/public/fotomhs/20'.substr($d_asisten['nim_asisten'],0,2).'/'.$d_asisten['nim_asisten'].'.jpg" width="100" /></span>
						</br><div style="line-height: 20px;">'.$d_asisten['nama_asisten'].'</br>'.$d_asisten['nim_asisten'].'</div>
					</label>';
            }
             echo '<hr><div class="fb_footer"> <input type="submit" value="Selanjutnya"/></div></form>';
        }
		?>
			
		
</form>

<script type="text/javascript" src="modules/system.js"></script>
